import { CATEGORY_TYPES } from '@/typings/home';
import axios from '.'
// 声明获取轮播图的用法
export function getSlideList<T>() {
   return axios.get<T,T>('/slides/list');
}
export function getLessons<T>(category:CATEGORY_TYPES,offset:number=0,limit:number=5){
   return axios.post<T,T>(`/lesson/list?category${category}&offser=${offset}&limit=${limit}`)
}
